package net.qiujuer.lesson.sample.foo;

import java.util.List;

/**
 * 各类客户端登录注册类
 */
public class ClientModel {
    /**
     * 客户端唯一标识，若是设备，则是sn，否则，是GUID码
     */
    private String id;
    /**
     * 客户端类型：-1：居民APP、-2：警务APP、-3：小程序、-4:门禁机、1：监控BS、2：命令BS；
     */
    private byte clientType;
    /**
     * 域名ID
     */
    private List<String> areaId;
    /**
     * 是否接受广播信息
     */
    private boolean receiveAll;

    public byte getClientType() {
        return clientType;
    }

    public void setClientType(byte clientType) {
        this.clientType = clientType;
    }

    public List<String> getAreaId() {
        return areaId;
    }

    public void setAreaId(List<String> areaId) {
        this.areaId = areaId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isReceiveAll() {
        this.receiveAll = this.clientType > 0 ? true : false;
        return receiveAll;
    }
}
